import axios from '@/utils/request'
import { IPageResult } from './types/base'
import { ISecurityParams, ISecurity } from './types/securityLog'

// 获取用户安全日志
export function getSecurityLog (currentPage = 1, take = 10, params: ISecurityParams) {
  return axios<IPageResult<ISecurity>>({
    url: '/api/identity/security-log/list',
    method: 'get',
    params: Object.assign({
      skipCount: take * (currentPage - 1),
      maxResultCount: take
    }, params)
  })
}
